/**
 * 作者: wgx
 * 日期: 2024-11-18 16:23:19
 * 备注: 兽潮配置表
 */
package com.motu.monstercity.server.game.commondata.fight;

import io.vertx.core.json.JsonObject;

public class MonsterTideMainModel {
    protected int id; // 数据库ID
    protected long power; // 兽潮实力
    protected String reward; // 奖励
    protected int delayTimeSucc; // 战斗胜利的下一波时间(秒)
    protected int delayTimeFail; // 战斗失败的下一波时间(秒)

    public MonsterTideMainModel() {
    }

    public MonsterTideMainModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        power = obj.containsKey("power") ? obj.getLong("power") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        delayTimeSucc = obj.containsKey("delay_time_succ") ? obj.getInteger("delay_time_succ") : 0;
        delayTimeFail = obj.containsKey("delay_time_fail") ? obj.getInteger("delay_time_fail") : 0;
    }

    public int getId() {
        return id;
    }

    public long getPower() {
        return power;
    }

    public String getReward() {
        return reward;
    }

    public int getDelayTimeSucc() {
        return delayTimeSucc;
    }

    public int getDelayTimeFail() {
        return delayTimeFail;
    }

}
